<?php /* Smarty version Smarty-3.1.14, created on 2017-08-17 16:13:43
         compiled from "E:\phpStudy\WWW\zyshop\admin\templates\order_delivery_edit.html" */ ?>
<?php /*%%SmartyHeaderCode:1963559954509cc92f0-29326956%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '68d7cd054507e01776e54bb2ec87b8a8ef3c7f4c' => 
    array (
      0 => 'E:\\phpStudy\\WWW\\zyshop\\admin\\templates\\order_delivery_edit.html',
      1 => 1502957617,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1963559954509cc92f0-29326956',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_59954509d66ba3_71658955',
  'variables' => 
  array (
    'back_order' => 0,
    'lang' => 0,
    'goods_lsit' => 0,
    'goods' => 0,
    'order_log' => 0,
    'list' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_59954509d66ba3_71658955')) {function content_59954509d66ba3_71658955($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'E:\\phpStudy\\WWW\\zyshop\\includes\\libs\\plugins\\modifier.date_format.php';
?><?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<style>
textarea {	width: 350px;	height: 100px;}
tr {height: 48px; }
th {background-color:#f3f3f3; font-size:18px;}
td {font-size:12px;}
</style>
<body>
<div class="fixed-bar">
  <div class="item-title">
    <h3>发货单操作：查看</h3>
  </div> 
</div>
<div class="fixed_bottom">
	<div class="list-div" style="margin-bottom: 5px">
   <form method="post" action="order.php" enctype="multipart/form-data" id="aspnetForm" name="form1">
	  <table width="100%" cellpadding="3" cellspacing="1">
  		<tr>
    		<th colspan="4">基本设置</th>
  		</tr>
  		<tr>
    	   <td><div align="right"><strong>发货单流水号：</strong></div></td>
    	   <td><?php echo $_smarty_tpl->tpl_vars['back_order']->value['delivery_sn'];?>
</td>
    	   <td><div align="right"><strong>发货时间：</strong></div></td>
    	   <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['back_order']->value['update_time'],'%Y-%m-%d %H:%M:%I');?>
</td>
  		</tr>
  		<tr>
    	   <td width="18%"><div align="right"><strong>订单号：</strong></div></td>
   		   <td width="34%"><?php echo $_smarty_tpl->tpl_vars['back_order']->value['order_sn'];?>
</td>
    	   <td><div align="right"><strong>下单时间：</strong></div></td>
    	   <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['back_order']->value['add_time'],'%Y-%m-%d %H:%M:%I');?>
</td>
  		</tr>
  		<tr>
    	   <td><div align="right"><strong>购货人：</strong></div></td>
    	   <td><?php echo (($tmp = @$_smarty_tpl->tpl_vars['back_order']->value['user_name'])===null||$tmp==='' ? $_smarty_tpl->tpl_vars['lang']->value['anonymous'] : $tmp);?>
</td>
    	   <td><div align="right"><strong>缺货处理：</strong></div></td>
    	   <td><?php echo $_smarty_tpl->tpl_vars['back_order']->value['how_oos'];?>
</td>
  		</tr>
  		<tr>
    	   <td><div align="right"><strong>配送方式：</strong></div></td>
    	   <td><?php echo $_smarty_tpl->tpl_vars['back_order']->value['shipping_name'];?>
</td>
    	   <td><div align="right"><strong>配送费用：</strong></div></td>
    	   <td><?php echo $_smarty_tpl->tpl_vars['back_order']->value['shipping_fee'];?>
</td>
  		</tr>
  		<tr>
    	   <td><div align="right"><strong>是否保价：</strong></div></td>
    	   <td><?php if ($_smarty_tpl->tpl_vars['back_order']->value['insure_yn']==1){?>否<?php }else{ ?>是<?php }?></td>
    	   <td><div align="right"><strong>保价费用：</strong></div></td>
    	   <td><?php echo (($tmp = @$_smarty_tpl->tpl_vars['back_order']->value['insure_fee'])===null||$tmp==='' ? 0.00 : $tmp);?>
</td>
  		</tr>
      <tr>
          <td><div align="right"><strong>发货单号：</strong></div></td>
          <td><input type="text" name="invoice_no" value="<?php echo $_smarty_tpl->tpl_vars['back_order']->value['invoice_no'];?>
" style=" width:180px; height:24px;"></td>
      </tr>
  		<tr>
          <th colspan="4">收货人信息</th>
    	</tr>
  		<tr>
    	   <td><div align="right"><strong>收货人：</strong></div></td>
    	   <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['back_order']->value['consignee'], ENT_QUOTES, 'UTF-8', true);?>
</td>
    	   <td><div align="right"><strong>电子邮件：</strong></div></td>
    	   <td><?php echo $_smarty_tpl->tpl_vars['back_order']->value['email'];?>
</td>
  		</tr>
  		<tr>
    	   <td><div align="right"><strong>地址：</strong></div></td>
    	   <td><?php echo $_smarty_tpl->tpl_vars['back_order']->value['region'];?>
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['back_order']->value['address'], ENT_QUOTES, 'UTF-8', true);?>
</td>
    	   <td><div align="right"><strong>邮编：</strong></div></td>
    	   <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['back_order']->value['zipcode'], ENT_QUOTES, 'UTF-8', true);?>
</td>
  		</tr>
  		<tr>
    	   <td><div align="right"><strong>电话：</strong></div></td>
    	   <td><?php echo $_smarty_tpl->tpl_vars['back_order']->value['tel'];?>
</td>
    	   <td><div align="right"><strong>手机：</strong></div></td>
    	   <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['back_order']->value['mobile'], ENT_QUOTES, 'UTF-8', true);?>
</td>
  		</tr>
  		<tr>
    	   <td><div align="right"><strong>标志性建筑：</strong></div></td>
    	   <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['back_order']->value['sign_building'], ENT_QUOTES, 'UTF-8', true);?>
</td>
    	   <td><div align="right"><strong>最佳送货时间：</strong></div></td>
    	   <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['back_order']->value['best_time'], ENT_QUOTES, 'UTF-8', true);?>
</td>
  		</tr>
  		<tr>
    	   <td><div align="right"><strong>客户给商家的留言：</strong></div></td>
    	   <td colspan="3"><?php echo $_smarty_tpl->tpl_vars['back_order']->value['postscript'];?>
</td>
  		</tr>
	 </table>
  </div>
  <div class="list-div" style="margin-bottom: 5px">
    <table width="100%" cellpadding="3" cellspacing="1">
      <tr>
        <th colspan="7" scope="col">商品信息</th>
      </tr>
     <tr>
        <td scope="col"><div align="center"><strong>商品名称</strong></div></td>
        <td scope="col"><div align="center"><strong>货号</strong></div></td>
        <td scope="col"><div align="center"><strong>货品号</strong></div></td>
        <td scope="col"><div align="center"><strong>属性</strong></div></td>
        <td scope="col"><div align="center"><strong>发货数量</strong></div></td>
      </tr>
 	    <?php  $_smarty_tpl->tpl_vars['goods'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['goods']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['goods_lsit']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['goods']->key => $_smarty_tpl->tpl_vars['goods']->value){
$_smarty_tpl->tpl_vars['goods']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['goods']->key;
?>
      <tr>
        <td><div style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['goods']->value['goods_name'];?>
</div></td>
        <td><div style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['goods']->value['goods_sn'];?>
</div></td>
        <td><div style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['goods']->value['product_sn'];?>
</div></td>
        <td><div style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['goods']->value['goods_attr'];?>
</div></td>
        <td><div style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['goods']->value['send_number'];?>
</div></td>
      </tr>
      <?php } ?>
    </table>
  </div>
  <div class="list-div" style="margin-bottom: 5px">
    <table  width="100%"cellpadding="3" cellspacing="1">
    <?php if ($_smarty_tpl->tpl_vars['back_order']->value['status']==1){?><?php }else{ ?>
      <tr>
        <th colspan="6">操作信息</th>
      </tr>
      <tr>
        <td><div align="right"><strong>操作者：</strong></div></td>
        <td><?php echo $_smarty_tpl->tpl_vars['back_order']->value['action_user'];?>
</td>
        <td><div><strong>办事处：</strong></div></td>
        <td><?php echo $_smarty_tpl->tpl_vars['back_order']->value['agency_name'];?>
</td>
      </tr>
      <tr>
        <td><div align="right" >操作备注：  &nbsp;&nbsp;&nbsp;&nbsp; </div></td>
        <td colspan="5">
        <textarea name="action_note" cols="192" rows="3"></textarea>
        </td>
        <td></td>
        <td></td>
      </tr>
   
      <tr>
        <td><div align="right"><strong>当前可执行操作：</strong></div></td>
        <td>
          <?php if ($_smarty_tpl->tpl_vars['back_order']->value['status']==2){?>
            <input type="submit" value='发货' style=" width:60px;">
            <input type="hidden" name='act' value='deliver'>
            <input type="hidden" name='order_id' value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['order_id'];?>
'>
            <input type="hidden" name='delivery_id' value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['delivery_id'];?>
'>
            <input type="hidden" name='good' value='1'>
            <?php }else{ ?>
            <input type="submit" value='取消发货'>
            <input type="hidden" name='act' value='deliver'>
            <input type="hidden" name='delivery_id' value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['delivery_id'];?>
'>
            <input type="hidden" name='order_id' value='<?php echo $_smarty_tpl->tpl_vars['back_order']->value['order_id'];?>
'>
            <input type="hidden" name='good' value='2'>
          <?php }?>
        </td>
      </tr>
    </form>
    <?php }?>
  </table>
</div>
<div>
  <table align="center;" class="table tb-type2">
    <thead>
      <tr>
        <th><a>操作者</a></th>
        <th><a>操作时间</a></th>
        <th><a>订单状态</a></th>
        <th><a>付款状态</a></th>
        <th><a>发货状态</a></th>
      </tr>
      <?php  $_smarty_tpl->tpl_vars['list'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['list']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['order_log']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['list']->key => $_smarty_tpl->tpl_vars['list']->value){
$_smarty_tpl->tpl_vars['list']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['list']->key;
?>
        <tr>
          <td align="center"><?php echo $_smarty_tpl->tpl_vars['list']->value['action_user'];?>
</td>
          <td align="center"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['list']->value['log_time'],'%Y-%m-%d %H:%M:%I');?>
</td>
          <td align="center">
          <?php if ($_smarty_tpl->tpl_vars['list']->value['order_status']==0){?>未确认
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['order_status']==1){?>已确认
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['order_status']==2){?><font color="#FF0000">取消</font>
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['order_status']==3){?><font color="#FF0000">无效</font>
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['order_status']==4){?><font color="#FF0000">退货</font>
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['order_status']==5){?>已分单
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['order_status']==6){?>部分已分单
          <?php }?>
          </td>
          <td align="center"><?php if ($_smarty_tpl->tpl_vars['list']->value['pay_status']==0){?>未付款
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['pay_status']==1){?>付款中
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['pay_status']==2){?>已付款
          <?php }?>
          </td>
          <td align="center"><?php if ($_smarty_tpl->tpl_vars['list']->value['shipping_status']==0){?>未发货
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['shipping_status']==1){?>已发货
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['shipping_status']==2){?>收货确认
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['shipping_status']==3){?>配货中
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['shipping_status']==4){?>已发货(部分商品)
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['shipping_status']==5){?>发货中(前台状态：未发货)
          <?php }?>
          </td>
        </tr>
      <?php } ?>
    </thead>
  </table>
</div><?php }} ?>